<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../js/vue2.js"></script>
</head>

<body>
    <div id="app">
       <table border="1" width="500px">
           <thead>
               <tr>
                   <th>编号</th>
                   <th>名字</th>
                   <th>年龄</th>
                   <th>地址</th>
                   <th>性别</th>
               </tr>
           </thead>
           <tbody>
               <tr v-for="value in jiazhi">
                   <td v-for="ate in value">{{ate}}</td>
               </tr>
           </tbody>
       </table>
    </div>
    <script>
            var ms = new Vue({
                el: '#app',
                data: {
                    jiazhi: [
                        {
                            id: 1,
                            name: 'jack',
                            age: 20,
                            address: '广州黑马程序员',
                            gender: '男'
                        },
                        {
                            id: 2,
                            name: 'rose',
                            age: 18,
                            address: '广州黑马程序员',
                            gender: '女'
                        },
                        {
                            id: 3,
                            name: 'tom',
                            age: 19,
                            address: '广州黑马程序员'
                        }
                    ]
                }
            })
        </script>
</body>


</html>